package com.etc.dao;

import com.etc.pojo.Favorite;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FavoritePersonageDao {

    /**
     * 查询用户发布所有视频
     * @param userId
     * @return
     */
    List<Favorite> queryAllFavoriteByUserId(@Param("userId") String userId);

    /**
     * 删除视频
     * @param favoriteId
     * @return
     */
    int deleteFavoriteByVideoId(@Param("favoriteId") Integer favoriteId);
}
